<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <meta name="keywords" content="众评网，新闻资讯应用，头条，热点，科技，娱乐，健康，时尚，家居，教育，旅行，两性，美食，星座，阅读，个性化新闻">
    <meta name="description"
          content="众评网是一款高度智能的新闻资讯，通过它你可以搜索并订阅任意关键词，它会自动帮你聚合整理并更新相关资讯，同时会智能分析你的兴趣爱好，为你推荐感兴趣的内容。看新闻资讯，众评网就够了！">
    <title>{$title}</title>
    {js href="/static/personal/js/jquery-1.8.3.min.js"}
    {load href="/static/personal/css/reset.css"}
</head>
<body>
<div class="header-channel-nav header-mini ">
    <div class="content">
        <a href="/" class="logo float-left iconfont icon-logo"></a>
        <div class="float-right header-links anim">
            <div class="icon-search btn-search iconfont">
            </div>
            <div class="suggestion-search-box">
                <input placeholder="大家都在搜" class="input input-search">
            </div>
            <a href="http://mp.yidianzixun.com/" class="link link-ydhao">一点号</a>
            <button class="btn btn-login js-to-login">登录</button>
        </div>
        <div class="channel-nav">
            <div class="down iconfont icon-arrow-down">
            </div>
            <div class="list">
                <a data-index="0" href="/" data-channelid="best" class="item ">首页</a><a data-index="1"
                                                                                        href="/channel/hot"
                                                                                        data-channelid="hot"
                                                                                        class="item ">要闻</a><a
                    data-index="2" href="/medialist" data-channelid="undefined" class="item ">一点号</a><a data-index="3"
                                                                                                        href="/channel/u13746"
                                                                                                        data-channelid="u13746"
                                                                                                        class="item ">视频</a><a
                    data-index="4" href="/channel/u12131" data-channelid="u12131" class="item ">段子</a><a data-index="5"
                                                                                                         href="/channel/c11"
                                                                                                         data-channelid="c11"
                                                                                                         class="item ">汽车</a><a
                    data-index="6" href="/channel/c9" data-channelid="c9" class="item ">社会</a><a data-index="7"
                                                                                                 href="/channel/c3"
                                                                                                 data-channelid="c3"
                                                                                                 class="item ">娱乐</a><a
                    data-index="8" href="/channel/c7" data-channelid="c7" class="item ">军事</a><a data-index="9"
                                                                                                 href="/channel/c2"
                                                                                                 data-channelid="c2"
                                                                                                 class="item ">体育</a><a
                    data-index="10" href="/channel/sc4" data-channelid="sc4" class="item ">NBA</a><a data-index="11"
                                                                                                     href="/channel/c5"
                                                                                                     data-channelid="c5"
                                                                                                     class="item ">财经</a><a
                    data-index="12" href="/channel/c6" data-channelid="c6" class="item ">科技</a><a data-index="13"
                                                                                                  href="/channel/sc20"
                                                                                                  data-channelid="sc20"
                                                                                                  class="item ">数码</a><a
                    data-index="14" href="/channel/u241" data-channelid="u241" class="item ">美女</a><a data-index="15"
                                                                                                      href="/channel/c16"
                                                                                                      data-channelid="c16"
                                                                                                      class="item ">健康</a><a
                    data-index="16" href="/channel/c15" data-channelid="c15" class="item ">时尚</a><a data-index="17"
                                                                                                    href="/channel/s10671"
                                                                                                    data-channelid="s10671"
                                                                                                    class="item ">搞笑</a><a
                    data-index="18" href="/channel/t19189" data-channelid="t19189" class="item ">电台</a><a
                    data-index="19" href="/channel/c17" data-channelid="c17" class="item ">旅游</a>
            </div>
        </div>
    </div>
</div>

<!--main 开始-->

<div class="main">

    <div class="left-wrapper">
        <div class="profile-wrapper">
            <img src="/static/personal/img/batman.jpg" width="90">
            <p>
                游客
            </p>
        </div>
        <ul class="nav-list">
            <li class="subscribe-li"><a href="/personal" class="font20">我的收藏</a></li>
            <li class="subscribe-li"><a href="/follow" class="font20">我的关注</a></li>
            <li class="subscribe-li"><a href="/discuss" class="font20">我的评论</a></li>
            <li class="subscribe-li"><a href="/message" class="font20">我的信息</a></li>
            <li class="subscribe-li"><a href="/article" class="font20">我的文章</a></li>
        </ul>
    </div>
    <!--个个栏目体  开始-->
    <div class="right-wrapper">
        <!--我的收藏-->
        <div class="nav-show" style="display:block">
            {if condition="$follow == null"}
            <div style="display:block" class="no-like">
                <!--<img>-->
                <p>
                    暂无收藏，赶紧去看看吧
                </p>
            </div>
            {else /}
            <ul class="like-list" >
                {volist name="follow" id="v"}
                <li class="image">
                    <a href="" target="_blank" class="img-link">
                        <!--<img src="{$v['iname']}">-->
                    </a>
                    <div class="doc-items-wrapper">
                        <div class="doc-items mt30" >
                            <a href="" target="_blank">
                                <h3>{$v['aname']}</h3>
                            </a>
                            <p>
                                <span>{$v['nickname']}</span>
                                <span>1评</span>

                                <span>{$v['regtime'] | date='y-m-d H:m:s',###}</span>
                                <span class="like-remove">取消收藏
                                            <i data-id="{$v['id']}" >x</i>
                                        </span>
                            </p>
                        </div>
                    </div>
                </li>
                {/volist}
            </ul>
            {/if}
        </div>
    </div> <!--个个栏目体 结束-->
</div>  <!--main 结束-->

{js href="/static/personal/layui/layui.js"}
<script>
    $(function () {
        $('.like-remove').bind('click', function () {
            var id = $(this).children('i').attr('data-id');
            var _this = this;
            $.ajax({
                type: 'get',
                url: 'personal/'+id,
                dateType: 'json',
                success: function (data) {
                    console.log(_this);

                    if (data > 0){
                        $(_this).parents('ul').empty(_this);
                    } else {
                        alert('取消收藏失败');
                    }
                },
                error: function () {
                    // AJAX执行失败
                    alert('ajax操作失败');
                }
            });
        });
    });

</script>


<div class="footer-mini-wrapper">
    <div class="footer-mini">
        <p>
            <span class="icon-jgw"></span><span>京公网安备 11010802020163号</span><a
                target="_blank">互联网药品信息服务资格证书</a><span>京网文[2015]0377-157号</span><span>京ICP证140123号</span>
        </p>
        <p>
            <a href="">举报邮箱：</a><span>公司名称：北京一点网聚科技有限公司</span>
        </p>
    </div>
</div>

</body>
</html>